import { MenuTypeEnum, SexEnum, StatusEnum } from '../enum'
import { TagConfig } from '../interface'

// 枚举值
export const statusMap: Record<StatusEnum, TagConfig> = {
  [StatusEnum.DYNAMIC]: { text: 'common.status_enable', type: 'info' },
  [StatusEnum.STATIC]: { text: 'common.status_disable', type: 'error' },
}
// 枚举值
export const sexMap: Record<SexEnum, TagConfig> = {
  [SexEnum.FEMALE]: { text: 'common.sex_female', type: 'info' },
  [SexEnum.MALE]: { text: 'common.sex_male', type: 'error' },
}

export const menuMap: Record<MenuTypeEnum, TagConfig> = {
  [MenuTypeEnum.MENU]: { text: 'menus.menu', type: 'success' },
  [MenuTypeEnum.BUTTON]: { text: 'menus.button', type: 'error' },
  [MenuTypeEnum.DIRECTORY]: { text: 'menus.directory', type: 'info' },
}
